package builderPattern;

//建造者实体类--公寓建造者
public class ApartmentBuilder implements Builder {

    private House house=new House();

    @Override
    public void buildWall() {
        house.setWall("apartment wall");
    }

    @Override
    public void buildRoof() {
        house.setRoof("apartment roof");
    }

    @Override
    public void buildFloor() {
        house.setFloor("apartment floor");
    }

    @Override
    public House getHouse() {
        return house;
    }
}
